token_obfuscator.py¶
Base class for Token Obfuscators used by the framework
-
class
bashfuscator.core.mutators.token_obfuscator.
TokenObfuscator
(name, description, sizeRating, timeRating, binariesUsed=[], fileWrite=False, notes=None, author=None, credits=None, evalWrap=True, unreadableOutput=False)[source]¶ Bases:
bashfuscator.core.mutators.mutator.Mutator
Base class for all token obfuscators. If an obfuscator is able to be deobfuscated and executed by bash at runtime, without bash having to execute a stub or any code, then it is a Token Obfuscator.
Parameters: - name (str) – name of the TokenObfuscator
- description (str) – short description of what the TokenObfuscator does
- sizeRating (int) – rating from 1 to 5 of how much the TokenObfuscator increases the size of the overall payload
- fileWrite (bool) – True if the Token Obfuscator requires creating/writing to files, False otherwise
- notes (str) – see
bashfuscator.common.objects.Mutator
- author (str) – see
bashfuscator.common.objects.Mutator
- credits (str) – see
bashfuscator.common.objects.Mutator